package 设计模式.respon;

public class CollegeApprover extends Approver{
    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequst purchaseRequst) {
        if (purchaseRequst.getPrice()>5000&&purchaseRequst.getPrice()<=10000){
            System.out.println("id"+purchaseRequst.getId()+"被"+this.name+"处理");
        }else {
            approver.processRequest(purchaseRequst);
        }
    }
}
